﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true" CodeBehind="HR_ApproveRotationHR_MyTask.aspx.cs" Inherits="vHCS.K2App.MdlK2.StaffMovement.Ver1.HR_ApproveRotationHR_MyTask" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.DataReader" TagPrefix="core" %>
<%@ Register src="~/MdlK2/Controls/HR_ctrEmpHeader_Info.ascx" tagname="HR_ctrEmpHeader" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainToolbar" runat="server">
    <asp:HiddenField ID="hdfsn" runat="server" Value="" />
    <asp:HiddenField ID="hdfWorkingrecord" runat="server" />
    <asp:HiddenField ID="hdfWRPrevious" runat="server" />
    <asp:HiddenField ID="hdfEmpID" runat="server" />
    <asp:HiddenField ID="hdfHierachyid" runat="server" />
    <asp:HiddenField ID="hdfEformID" runat="server" />
    <asp:HiddenField ID="hdfSharedUser" runat="server" />
    <div class="divButton">
        <asp:Button ID="btnSubmitTop" runat="server" Text="Submit" CssClass="btnSubmit" OnClick="btnSubmitTop_Click" />
        <asp:Button ID="btnExportTop" runat="server" Text="Xuất DL" CssClass="btnExport" Visible="false" />
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="searchWrapper">
        <br />
        <uc1:HR_ctrEmpHeader ID="HR_ctrEmpHeader" runat="server" />
    </div>
    <div class="controlWrapper">
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label45" runat="server" Text="Ngày hiệu lực"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadDatePicker ID="dpkNgayhieuluc" runat="server" Enabled="false">
                </telerik:RadDatePicker>
            </div>
            <div class="label">
                <asp:Label ID="Label46" runat="server" Text="Hình thức thay đổi"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtHinhthucthaydoi" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column" style="margin-left: 200px">
            <div class="control">
                <asp:RadioButtonList ID="rbtTerminationStatus" runat="server" RepeatDirection="Horizontal"
                    Enabled="false">
                    <asp:ListItem Value="1" Text="Có quyết định"></asp:ListItem>
                    <asp:ListItem Value="2" Text="Không có quyết định"></asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label2" runat="server" Text="File đính kèm"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtFile" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label41" runat="server" Text="9"></asp:Label>
            </div>
            <div class="contact" style="margin-top: 5px; margin-left: 95px;">
                <asp:Label ID="Label42" runat="server" Font-Bold="true" Text="Nơi chuyển đi"></asp:Label>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label43" runat="server" Text="9"></asp:Label>
            </div>
            <div class="contact" style="margin-top: 5px;">
                <asp:Label ID="Label44" runat="server" Font-Bold="true" Text="Nơi chuyển đến"></asp:Label>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label8" runat="server" Text="Văn phòng làm việc"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtOfficeOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label9" runat="server" Text="Văn phòng làm việc"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtOffice" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label11" runat="server" Text="Cơ cấu tổ chức"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtOrgChartOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label13" runat="server" Text="Cơ cấu tổ chức"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtOrgChart" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label14" runat="server" Text="Cơ cấu chuyên môn"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtProChartOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label16" runat="server" Text="Cơ cấu chuyên môn"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtProChart" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label17" runat="server" Text="Cơ cấu quản lý"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtMgtChartOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label19" runat="server" Text="Cơ cấu quản lý"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtMgtChart" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label20" runat="server" Text="Cấp bậc"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtLevelOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label22" runat="server" Text="Cấp bậc"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtLevel" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label23" runat="server" Text="Chức vụ"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtJobTitleOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label25" runat="server" Text="Chức vụ"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtJobTitle" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label4" runat="server" Text="Jop role"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtJobRoleOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label6" runat="server" Text="Jop role"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtJobRole" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label26" runat="server" Text="Loại nhân viên"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtEmpTypeOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label28" runat="server" Text="Loại nhân viên"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtEmpType" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <br />
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label32" runat="server" Text="Leader (theo cơ cấu)"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtLeaderOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label34" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <asp:TextBox ID="txtLeader" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label29" runat="server" Text="Người báo cáo"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtReporterOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label31" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <asp:TextBox ID="txtReporter" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label35" runat="server" Text="Người phê duyệt"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtApproverOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label37" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <asp:TextBox ID="txtApprover" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label38" runat="server" Text="Người mentor"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtMentorOld" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label40" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <asp:TextBox ID="txtMentor" runat="server" ReadOnly="true" CssClass="inputReadOnlyBold"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label7" runat="server" Text="Ghi chú"></asp:Label>
            </div>
            <div class="merge3">
                <asp:TextBox ID="txtGhichu" runat="server" TextMode="MultiLine" Height="40px" Width="97%"
                    CssClass="inputMultiReadOnly" ReadOnly="true" ></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
       
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label48" runat="server" Font-Bold="true" Text="Xác nhận IT"></asp:Label>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label47" runat="server" Text="Có duy trì quyền hạn hay không ?"></asp:Label>
            </div>
            <div class="control">
                <asp:CheckBox ID="chkDuytriquyenhan" runat="server" Enabled="false" />
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label52" runat="server" Font-Bold="true" Text="Có thay đổi lương hay không ?"></asp:Label>
            </div>
            <div class="control">
                <asp:CheckBox ID="chkChangeSalary" runat="server" Enabled="false" />
            </div>
            <div class="divClear">
            </div>
        </div>
        <div id="divLuong" style="display: none">
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label53" runat="server" Text="Lương gross"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtGross" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label55" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtGross_Now" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label56" runat="server" Text="Lương căn bản"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtLuongcanban" runat="server" BorderStyle="None"
                    NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="," Type="Number"
                    ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label58" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtLuongcanban_Now" runat="server" BorderStyle="None"
                    NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="," Type="Number"
                    ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label59" runat="server" Text="KPI"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtKPI" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label61" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtKPI_Now" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label62" runat="server" Text="Trợ cấp tổng hợp"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtTrocaptonghop" runat="server" BorderStyle="None"
                    NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="," Type="Number"
                    ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label64" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtTrocaptonghop_Now" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label1" runat="server" Text="Lương CTV"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtLuongCTV" runat="server" BorderStyle="None"
                    NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="," Type="Number"
                    ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="label" style="visibility: hidden;">
                <asp:Label ID="Label3" runat="server" Text="9"></asp:Label>
                <span class="labelRequiredField">(*)</span>
            </div>
            <div class="control">
                <telerik:RadNumericTextBox ID="txtLuongCTV_Now" runat="server" BorderStyle="None" NumberFormat-DecimalDigits="0"
                    NumberFormat-GroupSeparator="," Type="Number" ReadOnly="true" CssClass="inputReadOnlyBold">
                </telerik:RadNumericTextBox>
            </div>
            <div class="divClear">
            </div>
        </div>

        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label65" runat="server" Text="Trợ cấp khác"></asp:Label>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="divClear"></div>
        <div class="divGrid">
            <telerik:RadGrid ID="dtgTrocapkhac" runat="server" DataSourceID="dtsAllowance" AutoGenerateColumns="False"
                AllowPaging="True" AllowMultiRowSelection="True" GridLines="None">
                <MasterTableView>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderStyle-Width="30px" HeaderText="STT" AllowFiltering="false"
                            ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Container.ItemIndex + 1 + dtgTrocapkhac.PageSize * dtgTrocapkhac.CurrentPageIndex%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="AllowanceName" HeaderText="Tên" HeaderStyle-Width="140px"
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                        <telerik:GridBoundColumn DataField="MaxAmount" HeaderText="Số tiền" HeaderStyle-Width="80px"
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                        <telerik:GridBoundColumn DataField="AmountOld" HeaderText="Số tiền đưa vào PR(Nơi chuyển đi)"
                            HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                        <telerik:GridBoundColumn DataField="Amount" HeaderText="Số tiền đưa vào PR(Nơi chuyển đến)"
                            HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">
                    </Scrolling>
                </ClientSettings>
            </telerik:RadGrid>
            <core:CoreDataSource ID="dtsAllowance" runat="server" SelectMethod="SelectAllowanceWR"
                TypeName="vHCS.HR.Business.HR_WorkingRecordCollection" EnableCaching="False"
                MaximumRowsParameterName="">
                <SelectParameters>
                    <asp:Parameter Name="workingnow" DefaultValue="" DbType="Int64" />
                    <asp:Parameter Name="workingprevious" DefaultValue="" DbType="Int64" />
                </SelectParameters>
            </core:CoreDataSource>
            <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server">
            </telerik:RadAjaxLoadingPanel>
            <div class="divClear">
            </div>
        </div>
        </div>
        <br />
        <div class="divClear"></div>
        
        <div class="div4Column">
            <div class="contact" style="margin-left: 60px; float: left;">
                <asp:Label ID="Label80" runat="server" Font-Bold="true" Text="Thông tin phê duyệt"></asp:Label>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="divClear"></div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label81" runat="server" Text="Ngày ký phê duyệt"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadDatePicker ID="dpkNgayky" runat="server">
                </telerik:RadDatePicker>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label84" runat="server" Text="Người phê duyệt"></asp:Label>
            </div>
            <div class="control">
                <asp:TextBox ID="txtNguoipheduyet" runat="server" CssClass="inputReadOnly" Width="50%"></asp:TextBox>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label82" runat="server" Text="Trạng thái"></asp:Label>
            </div>
            <div class="control">
                <telerik:RadComboBox ID="cboStatus" runat="server" Width="50%" DataSourceID="dtsStatusApprove"
                    DataTextField="Name" DataValueField="Value">
                </telerik:RadComboBox>
                <core:CoreDataSource ID="dtsStatusApprove" runat="server" SelectMethod="GetActions"
                    TypeName="K2CoreLib.K2Utils" EnableCaching="False"
                    MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="sn" QueryStringField="SN" DefaultValue="" />
                        <asp:QueryStringParameter Name="sharedUser" QueryStringField="SharedUser" DefaultValue="" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="Label83" runat="server" Text="Ghi chú"></asp:Label>
            </div>
            <div class="merge3">
                <asp:TextBox ID="txtGhichu_approve" runat="server" CssClass="MultiText" Width="97%" Rows="3"
                     TextMode="MultiLine"></asp:TextBox>
                <div class="divClear">
            </div>
            <div class="divClear">
            </div>
        </div>
        <br />
        <div class="divClear"></div>
        <div class="div4Column">
            <div class="control" style="margin-left: 60px; float: left;">
                <asp:Label ID="Label85" runat="server" Font-Bold="true" Text="Lịch sử phê duyệt"></asp:Label>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="divGrid">
            <telerik:RadGrid ID="dtgApprovedHistory" runat="server" DataSourceID="dtsApproveHistory"
                AutoGenerateColumns="False" AllowPaging="True" AllowMultiRowSelection="True"
                GridLines="None">
                <MasterTableView>
                    <Columns>
                        <telerik:GridDateTimeColumn DataField="SignDate" HeaderText="Ngày ký" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center" DataType="System.DateTime" DataFormatString="ddMMyyyy" />            
                        <telerik:GridBoundColumn DataField="Signer" HeaderText="Người ký" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="center" />
                        <telerik:GridBoundColumn DataField="Position" HeaderText="Chức năng" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" />
                        <telerik:GridBoundColumn DataField="Status" HeaderText="Trạng thái" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" />
                        <telerik:GridBoundColumn DataField="Note" HeaderText="Ghi chú của người phê duyệt" HeaderStyle-Width="400px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" /> 
                    </Columns>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                        Position="Bottom" />
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">
                    </Scrolling>
                </ClientSettings>
            </telerik:RadGrid>
            <core:coredatasource ID="dtsApproveHistory"  runat="server" SelectMethod="SelectHistoryApprove"
                    TypeName="vHCS.HR.Business.HR_WorkingRecordCollection" 
                    EnableCaching="False" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="Id" DefaultValue="" DbType="Int64" />
                        <asp:Parameter Name="Type" DefaultValue="1" DbType="Int16" />
                    </SelectParameters>
            </core:coredatasource>

            <div class="divClear"></div>
            </div>
        </div>
        <div class="divClear"></div>
        <div class="formTitle">
        <div class="formToolbar">
            <asp:Button ID="btnSubmitBot" runat="server" Text="Submit" CssClass="btnSubmit" OnClick="btnSubmitTop_Click" />
            <asp:Button ID="btnExportBot" runat="server" Text="Xuất DL" CssClass="btnExport" Visible="false"/>
        </div>
        </div>
    
    <telerik:RadCodeBlock ID="radCodeBlock" runat="server">
        <script type="text/javascript">
            function ChangeSalary() {
                var chkChangeSalary = document.getElementById("<%=chkChangeSalary.ClientID %>");
                var div = document.getElementById("divLuong");

                if (chkChangeSalary.checked) {
                    div.style.display = "block";

                    var txtgrossold = $find("<%=txtGross.ClientID %>");
                    var txtbasicold = $find("<%=txtLuongcanban.ClientID %>");
                    var txtkpiold = $find("<%=txtKPI.ClientID %>");
                    var txtsubold = $find("<%=txtTrocaptonghop.ClientID %>");

                    var txtgross = $find("<%=txtGross_Now.ClientID %>");
                    var txtbasic = $find("<%=txtLuongcanban_Now.ClientID %>");
                    var txtkpi = $find("<%=txtKPI_Now.ClientID %>");
                    var txtsub = $find("<%=txtTrocaptonghop_Now.ClientID %>");

                    if (txtgross != null && txtbasic != null && txtkpi != null && txtsub != null) {
                        txtgross.set_value(txtgrossold.get_value());
                        txtbasic.set_value(txtbasicold.get_value());
                        txtkpi.set_value(txtkpiold.get_value());
                        txtsub.set_value(txtsubold.get_value());
                    }
                }
                else {
                    div.style.display = "none";
                }
            }
            function ClosePage() {
                window.close();
            }
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
